package com.hx.vending.service.impl;

import com.hx.vending.bean.Dict;
import com.hx.vending.dao.DictMapper;
import com.hx.vending.service.IDictService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2019/1/26.
 */
@Service
public class DictServiceImpl implements IDictService{

    @Resource
    private DictMapper dictMapper;

    @Override
    public List<Dict> selectByExample(Dict dict) {
        return dictMapper.selectByExampleSelective(dict);
    }

    @Override
    public int insertSelective(Dict dict) {
        return dictMapper.insertSelective(dict);
    }

    @Override
    public Dict selectByPrimaryKey(Dict dict) {
        return dictMapper.selectByPrimaryKeySelective(dict);
    }

    @Override
    public int updateByPrimaryKey(Dict dict) {
        return dictMapper.updateByPrimaryKeySelective(dict);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dictMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteBatchById(List<Integer> integerList) {
        return dictMapper.deleteBatchById(integerList);
    }
}
